* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
body {
    font-size: 16px;
    color: #000;
    background-color: #f7f7f7;
}
a {
    text-decoration: none;
    color: #000;
}

// 头部导航栏
.top_nav {  
    width: 100%;
    height: 0.63rem;
    background-color: #fff;
    padding: 0 0.02rem;
    overflow:hidden;
    ul {
        height: 0.8rem;
        overflow-x:scroll;/*主要*/
        overflow-y:hidden;/*主要*/
        white-space: nowrap;
        li {
            display: inline-block;
            margin: 0.05rem 0.055rem;
            padding: 0px 0.12rem;
            a { 
                margin: 0;
                padding: 0.09rem 0;
                font-size: 0.25rem;
                color: inherit;
                // &:focus{
                //     border-bottom: 2px solid red;
                // }
            }
        }
        .atvit {
            border-bottom: 2px solid red; 
        }
    }
}
// 商品列表
.product_list {
    width: 100%;
    background-color: #fff;
    padding: 0 0.02rem;
    ul {
        background-color: #f7f7f7;
        li {
            display: block;
            margin: 0.05rem 0;
            background-color: #fff;
            .shangpin {
                display: flex;
                justify-content: row;
                padding: 0.05rem 0.02rem;
                font-size: 0.12rem;
                text-decoration: none;
                .left_img {
                    flex: 1;
                    a {
                        img {
                            width: 100%;
                        }
                    }
                }
                .right_details {
                    display: flex;
                    flex: 2;
                    flex-direction: column;
                    margin-left: 0.1rem;
                    .product_title {
                        display: block;
                        width: 100%;
                        height: 0.6rem;
                        font-size: 0.23rem;
                        overflow:hidden; 
                        text-overflow:ellipsis;   
                        display:-webkit-box;
                        -webkit-box-orient:vertical;
                        -webkit-line-clamp:2;
                        text-decoration: none; 
                    }

                    .price {
                        width: 100%;
                        color: red;
                        // margin-top: 0.05rem;
                        .new_price{
                            font-size: 0.3rem;
                            font-weight: 600;
                        i {
                            font-size: 0.25rem;
                            font-weight: 400;
                            font-style:normal;
                        }
                        em {
                            margin: 0 0.05rem;
                            font-size: 0.2rem;
                            font-style:normal;
                        }
                        del {
                            color: #666;
                            font-size: 0.2rem;
                            margin-left: 0.14rem;
                        }
                     }
                        .old_price{
                         margin-left: 0.05rem;
                         color: #666;
                         text-decoration: line-through 
                     }
                    }

                    .strip {
                        display: flex;
                        justify-content: row;
                        margin-top: 0.09rem;
                        width: 100%;
                        .already {
                            display: block;
                            margin-left: 0.15rem;
                            width: 3.4rem;
                            .bar {
                                position: relative;
                                a {
                                    display:none;
                                }
                                i {
                                    display: inline-block;
                                    position: absolute;
                                    width: 1.5rem;
                                    height: 0.2rem;
                                    background-color: #ffb7b7;
                                    border-radius: 8px;
                                    z-index: 1;
                                    em {
                                        display: inline-block;
                                        position: absolute;
                                        height: 0.2rem;
                                        background-color: red;
                                        border-radius: 8px;
                                        z-index: 2;
                                    }
                                    span {
                                        position: absolute;
                                        top: -9%;
                                        left: 36%;
                                        color: #fff;
                                        font-size: 0.07rem;
                                        z-index: 3;
                                    }
                                }
                                b {
                                    margin-left: 50%;
                                    font-size: 0.01rem;
                                    color: red;
                                }
                            }
                        }
                    }

                    .Couponing {
                        display: flex;
                        margin-top: 0.09rem;
                        width: 100%;
                        justify-content: space-between;
                        .Coupon {
                            display: inline-block;
                            width: 2rem;
                            height: 0.5rem;
                            color: red;
                            border: 1px dashed red;
                            text-align: center;
                            line-height: 0.5rem;
                            font-weight: 600;
                            text-decoration: none;
                        }
                        .order {
                            display: inline-block;
                            width: 1rem;
                            height: 0.5rem;
                            // margin-left: 60px;
                            background-color: #ff5e5d;
                            color: #fff;
                            font-size: 0.12rem;
                            text-align: center;
                            line-height: 0.5rem;
                            border-radius: 5px;
                            text-decoration: none;
                        }
                    }

                }
            }
        }
    }
}